<?php
/**
 * 用户人才model
 * User: guojing
 * Date: 2020/4/11
 * Time: 19:02
 */

namespace app\api\model;

use think\Model;

class UserCategory extends Model
{

    protected $name = 'user_category';

    public static function addRecord($data)
    {
        return self::create($data);
    }

    public static function delByCondition($condition = [])
    {
        if ($condition) {
            return self::where($condition)->delete();
        }
    }

}